package com.lyz.monitor;

public abstract class AbstractMonitorData {
	
	protected String tag;
	/*监控的对象*/
	protected Object obj;
	/*监控条件*/
	protected String condition;
	/*标志是否已经发送了监控警告*/
	protected boolean isAlert = false;
	/*警告消息*/
	protected String aletMsg = null;
	
	
	public String getTag() {
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
	public Object getObj() {
		return obj;
	}
	public void setObj(Object obj) {
		this.obj = obj;
	}
	public String getCondition() {
		return condition;
	}
	public void setCondition(String condition) {
		this.condition = condition;
	}
	
	
	public boolean isAlert() {
		return isAlert;
	}
	public void setAlert(boolean isAlert) {
		this.isAlert = isAlert;
	}
	
	public String getAletMsg() {
		return aletMsg;
	}
	public void setAletMsg(String aletMsg) {
		this.aletMsg = aletMsg;
	}
	/**
	 * 是否需要发出警报
	 * @return 警报级别，-1表示不需要，其他请参见IMonitor
	 */
	public abstract int need2Alert();
	
	
}
